package dbtools.structures;


public class DBFieldText extends DBField<String>{

	private static final long serialVersionUID = 1L;

	private int length;
	
	public DBFieldText(int length){
		this.length = length;
	}
	
	@Override
	public String getSqlType() {
		return "CHAR("+length+")";
	}
	
	public void _setValueFromSQL(Object value){
		this.value = ((String) value).trim();
	}


}
